package behaviors.firing {
	import org.flixel.*
	public class SingleShotBehavior extends FiringBehavior {
		public function SingleShotBehavior() : void {
			super();
		}
		
		override public function fire(facing:uint, particleBehavior:ParticleBehavior, explodeBehavior:ExplodeBehavior) : void {
			// Subclasses generate particles and pass them the particle behavior
			var p:Particle = (FlxG.state as GameState).spawnParticleAtPlayer();
			particleBehavior.fire(facing, p, explodeBehavior);
		}
	}
}
